import service from '@/utils/request'
// @Tags AllVersions
// @Summary 创建allVersions表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.AllVersions true "创建allVersions表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /allVersions/createAllVersions [post]
export const createAllVersions = (data) => {
  return service({
    url: '/allVersions/createAllVersions',
    method: 'post',
    data
  })
}

// @Tags AllVersions
// @Summary 删除allVersions表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.AllVersions true "删除allVersions表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /allVersions/deleteAllVersions [delete]
export const deleteAllVersions = (params) => {
  return service({
    url: '/allVersions/deleteAllVersions',
    method: 'delete',
    params
  })
}

// @Tags AllVersions
// @Summary 批量删除allVersions表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除allVersions表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /allVersions/deleteAllVersions [delete]
export const deleteAllVersionsByIds = (params) => {
  return service({
    url: '/allVersions/deleteAllVersionsByIds',
    method: 'delete',
    params
  })
}

// @Tags AllVersions
// @Summary 更新allVersions表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.AllVersions true "更新allVersions表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /allVersions/updateAllVersions [put]
export const updateAllVersions = (data) => {
  return service({
    url: '/allVersions/updateAllVersions',
    method: 'put',
    data
  })
}

// @Tags AllVersions
// @Summary 用id查询allVersions表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.AllVersions true "用id查询allVersions表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /allVersions/findAllVersions [get]
export const findAllVersions = (params) => {
  return service({
    url: '/allVersions/findAllVersions',
    method: 'get',
    params
  })
}

// @Tags AllVersions
// @Summary 分页获取allVersions表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取allVersions表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /allVersions/getAllVersionsList [get]
export const getAllVersionsList = (params) => {
  return service({
    url: '/allVersions/getAllVersionsList',
    method: 'get',
    params
  })
}

// @Tags AllVersions
// @Summary 不需要鉴权的allVersions表接口
// @Accept application/json
// @Produce application/json
// @Param data query deviceReq.AllVersionsSearch true "分页获取allVersions表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /allVersions/getAllVersionsPublic [get]
export const getAllVersionsPublic = () => {
  return service({
    url: '/allVersions/getAllVersionsPublic',
    method: 'get',
  })
}
